﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using System;
using System.ComponentModel.DataAnnotations;

namespace CPPProject.CPP.Dto
{
    [AutoMapFrom(typeof(CPPPlant))]
    public class CPPPlantDto : EntityDto<int>
    {
        public DateTime CreationTime { get; set; }
        /// <summary>
        /// 所属公司
        /// </summary>
        public long CompanyId { get; set; }
        /// <summary>
        /// 站点ID
        /// </summary>
        [MaxLength(50)]
        public string PlantId { get; set; }
        /// <summary>
        /// 站点名称
        /// </summary>
        [MaxLength(50)]
        public string Name { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        [MaxLength(500)]
        public string Address { get; set; }
        /// <summary>
        /// 经度
        /// </summary>
        [MaxLength(300)]
        public string Longitude { get; set; }
        /// <summary>
        /// 纬度
        /// </summary>
        [MaxLength(300)]
        public string Latitude { get; set; }
        /// <summary>
        /// 客户ID
        /// </summary>
        [MaxLength(300)]
        public string CustomerId { get; set; }
        /// <summary>
        /// 上级站点
        /// </summary>
        public int ParentId { get; set; }
        /// <summary>
        /// 联系人
        /// </summary>
        [MaxLength(50)]
        public string Contactor { get; set; }
        /// <summary>
        /// 联系人2
        /// </summary>
        [MaxLength(50)]
        public string Contactor2 { get; set; }
        /// <summary>
        /// 联系人3
        /// </summary>
        [MaxLength(50)]
        public string Contactor3 { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        [MaxLength(50)]
        public string Telphone { get; set; }
        /// <summary>
        /// 联系电话2
        /// </summary>
        [MaxLength(50)]
        public string Telphone2 { get; set; }
        /// <summary>
        /// 联系电话3
        /// </summary>
        [MaxLength(50)]
        public string Telphone3 { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnabled { get; set; }
        /// <summary>
        /// 最大容量
        /// </summary>
        [MaxLength(300)]
        public string MaxCapacity { get; set; }
        /// <summary>
        /// 虚拟站点（1是0否）默认0
        /// </summary>
        public bool IVirtual { get; set; }
        /// <summary>
        /// 类型（0服务中心1客户2客户下游）
        /// </summary>
        [MaxLength(300)]
        public string IType { get; set; }
        /// <summary>
        /// 是否启用库位（1是0否）
        /// </summary>
        public bool IsBin { get; set; }
    }
}
